<style type="text/css">
    .text{	
        font-size:75px;
        font-weight: bold;
        text-align:left;
        font-family: cursive;
    } 

    .isi_tabel
	{
		border-width: 0 1px 1px 1px;
		border-style:solid;
	}
    
</style>




                <?
                $no = 1;
                $no_peserta = 1;
                foreach ($peserta->result() as $row) {
                    $counter = 1;
                    $no_kamar = $row->NO_KAMAR;
                    if ($row->PESERTA_1 == '0') {
                        $peserta_1 = "";
                    } else {
                        $peserta_1 = $row->PESERTA_1;
                    }


                    if ($row->PESERTA_2 == '0') {
                        $peserta_2 = "";
                    } else {
                        $peserta_2 = $row->PESERTA_2;
                    }
					

                echo'				
<table width="700" height="700" align="center" border="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
    <tr>
	<td style="border-width: 1px 1px 1px 1px; border-style:solid;">
            <table width="500" align="center" border="0">
				
				
				
                <tr>
                    <td>&nbsp;</td>
                </tr>';
				
				
				
				echo'
                <tr>
                    <td align="center"><img src="' . $header_foto . '" width="450" height="150"/></td>
                </tr>
                    ';
				
				
				
                echo '
                    <tr>
                        <td class="text" align="center">' . $no_kamar . '</td>
                    </tr>
                    <tr>
                        <td class="text" height="27">' . $no_peserta . '. ' . $peserta_1 . '</td>
                    </tr>
                ';
                    $no_peserta++;
                    echo'
                <tr>
                    <td class="text" height="27">' . $no_peserta . '. ' . $peserta_2 . '</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                ';
                    $no++;
                    $no_peserta = 1;


                    echo '
               <tr>
                    <td align="center"><img src="' . $footer_foto . '" width="450" height="80" /></td>
               </tr>
			   
				<tr>
					<td>&nbsp;</td>
				</tr>
			  

               </table>
		</tr>
		</td>
</table>
               
            ';
                   if($counter < $jumlah_peserta){
                       echo '<p style="page-break-after: always">&nbsp;</p>';
                   }
                   $counter++;
                }
                ?>


            

<p>&nbsp; </p>